package com.example.demo.base;

/**
 * @author masc
 * @date 2022-09-07 16:19
 * <p></p>
 */
public abstract class BaseControl<T> {

    protected int variantFormId;

    //（容器中需要确保能唯一区分）
    public void setVariantFormId(int variantFormId) {
        this.variantFormId = variantFormId;
    }

    public int getVariantFormId() {
        return variantFormId;
    }

    //详情查询
    public abstract T queryVariant(String value);

    public void updateTest(B b) {
        System.out.println("更新B对象"+b.getBb());
        //update B 类
    }

    protected T getVariantT(B b) {
        return (T) b;
    }
}
